Object.defineProperty(exports, "__esModule", {
  value: true
});
var def_CommonGameConfig = function () {
  function _ctor() {}
  Object.defineProperty(_ctor, "audioConfig", {
    get() {
      if (!this._audioConfig) {
        var t = cc.sys.localStorage.getItem("audioConfig");
        this._audioConfig = t ? JSON.parse(t) : new i();
      }
      return this._audioConfig;
    },
    set(t) {
      this._audioConfig.bgm = !!t.bgm;
      this._audioConfig.effect = !!t.effect;
      cc.sys.localStorage.setItem("audioConfig", JSON.stringify(this._audioConfig));
    },
    enumerable: false,
    configurable: true
  });
  Object.defineProperty(_ctor, "driveConfig", {
    get() {
      if (!this._driveConfig) {
        var t = cc.sys.localStorage.getItem("driveConfig");
        this._driveConfig = t ? JSON.parse(t) : new r();
      }
      return this._driveConfig;
    },
    set(t) {
      this._driveConfig.vibrate = !!t.vibrate;
      cc.sys.localStorage.setItem("driveConfig", JSON.stringify(this._driveConfig));
    },
    enumerable: false,
    configurable: true
  });
  _ctor.resourceUrl = "";
  _ctor.serverGameName = "myGame";
  _ctor.gameName = "myGame";
  _ctor.VideoSwitch = {
    delayShowNoVideoBtns: true,
    delayNoVideoTime: 3
  };
  _ctor._audioConfig = null;
  _ctor._driveConfig = null;
  return _ctor;
}();
exports.default = def_CommonGameConfig;
var i = function i() {
  this.bgm = true;
  this.effect = true;
};
var r = function r() {
  this.vibrate = true;
};